
// <copyright file="RemovePrefixXmlTextReader.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The remove prefix xml text reader.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Xml
{
    using System.IO;
    using System.Xml;

    /// <summary>
    /// The remove prefix xml text reader.
    /// </summary>
    public class RemovePrefixXmlTextReader : XmlTextReader
    {
        // public RemovePrefixXmlTextReader(string fileName)
        // : base(File.Open(fileName, FileMode.Open))
        // {
        // }
        #region Fields

        /// <summary>
        /// The settings.
        /// </summary>
        private readonly XmlReaderSettings _settings;

        #endregion Fields

        #region Constructors and Finalizers

        /// <summary>
        /// Initializes a new instance of the <see cref="RemovePrefixXmlTextReader"/> class.
        /// </summary>
        /// <param name="fileName">
        /// The file name.
        /// </param>
        /// <param name="settings">
        /// The settings.
        /// </param>
        public RemovePrefixXmlTextReader(string fileName, XmlReaderSettings settings)
            : base(File.Open(fileName, FileMode.Open))
        {
            this._settings = settings;
        }

        #endregion Constructors and Finalizers

        // public RemovePrefixXmlTextReader(Stream input, XmlNameTable nt)
        // : base(input, nt)
        // {
        // }

        // public RemovePrefixXmlTextReader(string url, Stream input)
        // : base(url, input)
        // {
        // }

        // public RemovePrefixXmlTextReader(string url, TextReader input)
        // : base(url, input)
        // {
        // }

        // public RemovePrefixXmlTextReader(string url, XmlNameTable nt)
        // : base(url, nt)
        // {
        // }

        // public RemovePrefixXmlTextReader(TextReader input, XmlNameTable nt)
        // : base(input, nt)
        // {
        // }

        // public RemovePrefixXmlTextReader(Stream xmlFragment, XmlNodeType fragType, XmlParserContext context)
        // : base(xmlFragment, fragType, context)
        // {
        // }

        // public RemovePrefixXmlTextReader(string url, Stream input, XmlNameTable nt)
        // : base(url, input, nt)
        // {
        // }

        // public RemovePrefixXmlTextReader(string url, TextReader input, XmlNameTable nt)
        // : base(url, input, nt)
        // {
        // }

        // public RemovePrefixXmlTextReader(string xmlFragment, XmlNodeType fragType, XmlParserContext context)
        // : base(xmlFragment, fragType, context)
        // {
        // }
        #region Public Properties

        /// <summary>
        /// Gets the prefix.
        /// </summary>
        public override string Prefix
        {
            get
            {
                return string.Empty;
            }
        }

        /// <summary>
        /// Gets the settings.
        /// </summary>
        public override XmlReaderSettings Settings
        {
            get
            {
                return this._settings;
            }
        }

        #endregion Public Properties
    }
}
